Skip to content

fix(ai): support tool input continuation in McpTest - #11467

Open
Liz-Lian wants to merge 1 commit into
Effect-TS:mainfrom
Liz-Lian:fix/mcptest-tool-continuation
Open

Liz-Lian wants to merge 1 commit into
Effect-TS:mainfrom
Liz-Lian:fix/mcptest-tool-continuation

Conversation

@Liz-Lian

@Liz-Lian Liz-Lian commented Dec 3, 2026

Copy link
Copy Markdown

Type

  • Bug Fix

Description

The in-memory client used the common tools/call schema on MCP 2026-07-28. It treated a valid input_required result as a decode defect and silently discarded requestState and inputResponses on the follow-up request.

McpTest now exposes a pause as the existing typed McpSchema.InputRequired, forwards both continuation fields, and retains McpSchema.CallToolResult for a completed call. Earlier protocol versions and the runtime MCP client are unchanged.

The new round-trip failed on pristine 07c9262e with the reported missing-content defect. On the patch, 411 tests across six affected suites passed with Vitest 5.1.2 and the upstream Effect test adapter in an isolated setup. An equivalent HTTP pause and resume passed, as did scoped Oxlint, Dprint, and whitespace checks. Full workspace pnpm check was not run; the scoped Effect tsrs check reported identical baseline and patched diagnostics, none in the changed source or test.

AI assistance was used for implementation and tests.

Related

Closes #11460. Thanks to the reporter for the minimal reproduction.

@changeset-bot

changeset-bot Bot commented Dec 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a0147f2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 43 packages
Name Type
effect Patch
@effect/opentelemetry Patch
@effect/vitest Patch
@effect/ai-amazon-bedrock Patch
@effect/ai-anthropic Patch
@effect/ai-cloudflare Patch
@effect/ai-openai-compat Patch
@effect/ai-openai Patch
@effect/ai-openrouter Patch
@effect/ai-typesafe Patch
@effect/atom-react Patch
@effect/atom-solid Patch
@effect/atom-vue Patch
@effect/chat-discord Patch
@effect/chat-slack Patch
@effect/chat-teams Patch
@effect/chat-telegram Patch
@effect/chat-whatsapp Patch
@effect/platform-browser Patch
@effect/platform-bun Patch
@effect/platform-cloudflare Patch
@effect/platform-deno Patch
@effect/platform-node-shared Patch
@effect/platform-node Patch
@effect/sql-clickhouse Patch
@effect/sql-d1 Patch
@effect/sql-libsql Patch
@effect/sql-mssql Patch
@effect/sql-mysql2 Patch
@effect/sql-pg Patch
@effect/sql-pglite Patch
@effect/sql-sqlite-bun Patch
@effect/sql-sqlite-do Patch
@effect/sql-sqlite-node Patch
@effect/sql-sqlite-react-native Patch
@effect/sql-sqlite-wasm Patch
@effect/docgen Patch
@effect/doctest Patch
@effect/graphql-generator Patch
@effect/openapi-generator Patch
@effect/ui-devtools Patch
@effect/ui-native Patch
@effect/ui-opentui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@effect-janitor effect-janitor Bot added the 4.0 label Dec 3, 2026

This branch is waiting to be deployed

1 waiting deployment
fork — a0147f22 Waiting Dec 3, 2026 by Liz-Lian via approval-gate #29464
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

McpTest.callTool dies with SchemaError when a tool pauses for input on MCP 2026-07-28

1 participant